package com.hk.notice;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hk.action.Action;
import com.hk.action.ActionForward;
import com.hk.dtos.BBSDto;
import com.hk.service.BBSService;
public class ModGoAction implements Action{
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
	BBSService manager=BBSService.getInstance();
	BBSDto dto = new BBSDto();
	
    String tseq = request.getParameter("seq");
    int seq = Integer.parseInt(tseq);
    String id = request.getParameter("id");
    String content = request.getParameter("content");
    String title = request.getParameter("title");
    dto.setSeq(seq);
    dto.setId(id);
    dto.setContent(content);
    dto.setTitle(title);
    dto.setBbsname("NOTICEBBS");
    boolean is = manager.modUpdateBoard(dto);

	ActionForward forword=new ActionForward();
	if(is){
		
		
	forword.setUrl("astart");
	forword.setRedirect(false);
    }
	return forword;
}//
}
